<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
	<?php echo $form->labelEx($model,'username'); ?>
	<?php echo $form->textField($model,'username'); ?>
	<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'userpass'); ?>
	<?php echo $form->textField($model,'userpass'); ?>
	<?php echo $form->error($model,'userpass'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'useremail'); ?>
	<?php echo $form->textField($model,'useremail'); ?>
	<?php echo $form->error($model,'useremail'); ?>
	</div>

	<div class="row">
	<?php echo $form->labelEx($model,'created'); ?>
	<?php echo $form->textField($model,'created'); ?>
	<?php echo $form->error($model,'created'); ?>
	</div>

	<div class="row buttons">
	<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

	<?php $this->endWidget(); ?>

</div>
<!-- form -->
